import random
import time


def bogo_sort(arr):
    while not is_sorted(arr):
        random.shuffle(arr)
    return arr


def is_sorted(arr):
    for i in range(1, len(arr)):
        if arr[i] < arr[i - 1]:
            return False
    return True


if __name__ == "__main__":
    input_str = input()
    start_time = time.perf_counter()
    str_list = input_str.split()
    int_list = [int(num) for num in str_list]
    print(bogo_sort(int_list))
    end_time = time.perf_counter()
    print(f'Execution time: {end_time - start_time:.4f}')